package com.atguigu.springcloud.alibaba.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author timiv
 */
@FeignClient(value = "seata-storage-service")
public interface StorageFeign {

    @PostMapping("/storage/sub")
    void subStorage(@RequestParam("productId") Long productId,@RequestParam("count") Integer count);
}
